package cn.demoncat.util.mysql.entity;

import cn.demoncat.util.lang.StringUtil;
import cn.demoncat.util.lang.constant.StatusConstant.Common;

/**
 * 描述：代码生成-属性
 *
 * @author yxl
 *
 * @version 2.0
 *
 * @since 2016年7月9日
 */
public class DbGenAttr {
	// 属性名
	private String name;
	// 属性大名
	private String bigName;
	// 属性注释
	private String comment;
	// 属性类型
	private String type;
	// 生成POJO时是否渲染：1是，0否
	private String poInclude;
	// 字段
	private DbGenField field;

	public DbGenAttr() {
		super();
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
		this.bigName = StringUtil.firstUpper(name);
	}

	public String getBigName() {
		return bigName;
	}

	public void setBigName(String bigName) {
		this.bigName = bigName;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
 
	public String getPoInclude() {
		return poInclude;
	}

	public void setPoInclude(boolean include) {
		this.poInclude = include ? Common.YES : Common.NO;
	}

	public DbGenField getField() {
		return field;
	}

	public void setField(DbGenField field) {
		this.field = field;
	}

}
